package cn.edu.gdu.quizpractice.service;

import cn.edu.gdu.quizpractice.entity.Manager;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Optional;

/**
 * @Author: Aubery
 * @Date: 2025-01-19-15:07
 * @Description:
 */
public interface IManagerService extends IService<Manager> {

    Manager findByTeleAndPassword(String telephone, String password);

    List<Manager> findAll();

    Optional<Manager> findByTele(String telephone);

    boolean updateByTele(Manager manager);

    boolean removeByTele(String telephone);

    boolean updatePwd(String telephone, String password);

    String findPwdByTele(String telephone);

    boolean updateEmail(String telephone, String email);
}
